package com.mrx.xfriendship.dao;

import com.mrx.xfriendship.model.po.CommentPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Mr.X
 * @since 2023-01-14 10:50:30
 */
@Mapper
public interface CommentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(CommentPO record);

    int insertSelective(CommentPO record);

    CommentPO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CommentPO record);

    int updateByPrimaryKey(CommentPO record);

    CommentPO selectLastCommentByPostId(Integer id);

    List<CommentPO> selectAllCommentByPostId(Integer id);

}
